<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>    
<%@ include file="/include/jsp/baseContent.jsp"%>
<%
String bg_knowledge_list = (String)request.getAttribute("resultDTO.bg_knowledge");
String[] bg_knowledge = bg_knowledge_list.split(", ");
String knowledge = "";
String strKnowledgeList = "";
for(int i=0; i < bg_knowledge.length; i++){
	if("01".equals(bg_knowledge[i])){
		strKnowledgeList += " Algorithm / Data Structure,";
	}else if("02".equals(bg_knowledge[i])){
		strKnowledgeList += " Capstone Design or Programming Laboratory,";
	}else if("03".equals(bg_knowledge[i])){
		strKnowledgeList += " Operating System,";
	}else if("04".equals(bg_knowledge[i])){
		strKnowledgeList += " Human Interface,";
	}else if("05".equals(bg_knowledge[i])){
		strKnowledgeList += " Artificial Intelligence,";
	}else if("06".equals(bg_knowledge[i])){
		strKnowledgeList += " Programming,";
	}else if("07".equals(bg_knowledge[i])){
		strKnowledgeList += " Database,";
	}else if("08".equals(bg_knowledge[i])){
		strKnowledgeList += " Software Architecture,";
	}else if("09".equals(bg_knowledge[i])){
		strKnowledgeList += " Computer Architecture,";
	}else if("10".equals(bg_knowledge[i])){
		strKnowledgeList += " Network,";
	}else if("11".equals(bg_knowledge[i])){
		strKnowledgeList += " Computer Graphics,";
	}else if("12".equals(bg_knowledge[i])){
		strKnowledgeList += " Software Engineering,";
	}else if("13".equals(bg_knowledge[i])){
		strKnowledgeList += " Embedded System,";
	}else if("14".equals(bg_knowledge[i])){
		strKnowledgeList += " Security,";
	}
}

%>
<link type="text/css" href="css/calendar/ui.all.css" rel="stylesheet" />
<link type="text/css" href="css/calendar/demos.css" rel="stylesheet" />    
<div style="margin:auto; text-align:center;">
	<!--// 컨텐츠 영역 -->
	<div id="mainContainer">
	<!-- //##### Contents START ############################# -->		
		<div id="title" style="text-align:left; padding-left:5px;">
			<h3><%=session.getAttribute("user_id")%> 's Profile</h3>
			<hr size="1" width="90%" style="color:#dfdfdf;" >
		</div>
		<div id="memberInfoForm" style="margin:auto; text-align:left; padding-left:15px;">
			<table id="memberInfo" border="1" style="width:85%; text-align:left;">
			<colgroup><col width="20%"><col width="40%"><col width="40%"></colgroup>
				<tr>
					<td rowspan="7" align="center"><img src="<s:property value="resultDTO.image_url"/>" style="width:125px; height:100px; overflow:hidden"></td>
					<td>&nbsp; Name : <s:property value="resultDTO.name"/></td>
					<td>&nbsp; Student ID : <s:property value="resultDTO.id"/></td>
				</tr>
				<tr>
					<td>&nbsp; National : <%if("01".equals(request.getAttribute("resultDTO.nationality"))){ %>Chinese
					               <%}else if("02".equals(request.getAttribute("resultDTO.nationality"))){%>Japanese
					               <%}else{%>Korean <%}%> 
					</td>		
					<td>&nbsp; Gender : <%if("01".equals(request.getAttribute("resultDTO.gender"))){ %>Man<%}else{%>Woman<%}%>	</td>
				</tr>			
				<tr>
					<td colspan="2">&nbsp; Background Knowledge : <%=strKnowledgeList%> </td>					
				</tr>
				<tr>
					<td colspan="2">&nbsp; School : Information Science</td>					
				</tr>
				<tr>
					<td>&nbsp; Field : <s:property value="resultDTO.cc_name"/></td>		
					<td>&nbsp; Lab : <s:property value="resultDTO.laboratory_name"/></td>					
				</tr>
				<tr>
					<td colspan="2">&nbsp; Program : <%if("01".equals(request.getAttribute("resultDTO.nationality"))){ %>Master degree
					               			  <%}else if("02".equals(request.getAttribute("resultDTO.nationality"))){%>Doctoral degree
					               		 	  <%}else{%>Integration dgree (M+D) <%}%>
					</td>					
				</tr>
				<tr>
					<td colspan="2">&nbsp; Goal : <s:property value="resultDTO.ability_name"/></td>					
				</tr>		
			</table>
		</div>
		
		<div id="title" style="text-align:left; padding-left:5px;">
			<h3><%=session.getAttribute("user_id")%> 's Knowledge Potential</h3>
			<hr size="1" width="90%" style="color:#dfdfdf;" >
		</div>
		<div id="potentialInfoForm" style="margin:auto; text-align:center;">
			<iframe name="hiddenframe1" src="/edu/viewMainNowPotential.action" frameborder="0" style="width:100%; height:150px; overflow:hidden"></iframe>
			<iframe name="hiddenframe2" src="/edu/viewMainGoalPotential.action" frameborder="0" style="width:100%; height:150px; overflow:hidden"></iframe>
		</div>
	<!-- //##### Contents END ############################# -->
	</div>
	<!--// 컨텐츠 영역 -->
</div>